import fcgi.Request;
//import fcgi.Connection;

int main (char[][] args)
{
//    FastCGIConnection connection = new FastCGIConnection ();
//    FastCGIRequest request = new FastCGIRequest (connection);
    FastCGIRequest request = new FastCGIRequest ();

    while ( request.accept () )
    {
        request.stdout.write("Content-type: text/html\r\n\r\n");
        request.stdout.write("Hello world!\n");

        request.exitStatus = 0;
    }

    return request.exitStatus;
}
